package cn.sccl.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * @author 饶爽
 * @time 2019年8月27日 下午10:32:09
 * @version 1.0.0
 * 用户实体类
*/
public class User {
    //用户id
    private Long user_id;
    //用户账号
    private String user_code;
    //用户名称
    private String user_name;
    //用户密码
    private String user_password;
    //状态：1:正常,0:暂停
    private Character user_state;
    //表达多对多
    private Set<Role> roles = new HashSet<Role>();
    public Long getUser_id() {
        return user_id;
    }
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }
    
    public String getUser_code() {
        return user_code;
    }
    public void setUser_code(String user_code) {
        this.user_code = user_code;
    }
    public String getUser_name() {
        return user_name;
    }
    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
    public String getUser_password() {
        return user_password;
    }
    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }
    public Character getUser_state() {
        return user_state;
    }
    public void setUser_state(Character user_state) {
        this.user_state = user_state;
    }
    public Set<Role> getRoles() {
        return roles;
    }
    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }
     
}
